package edu.stu.cs.software.family.favoriteshop.domain;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import edu.stu.cs.software.family.base.domain.BaseEntity;
@Entity
@Table(name = "O_FAVORITESHOP")
public class Favorite extends BaseEntity<Long> {

	/**
	 * 
<<<<<<< HEAD
	 */
	private static final long serialVersionUID = -7618104675410709250L;

	@Column(name = "NAME")
	String name;
	
	@Column(name = "INTRO")
	String intro;
	
	@OneToMany(mappedBy = "favorite", cascade = CascadeType.REMOVE, fetch = FetchType.EAGER)
	Set<Store> shops;
	
	public String getIntro() {
		return intro;
	}

	public void setIntro(String intro) {
		this.intro = intro;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
}
=======
	 */	
	private static final long serialVersionUID = 1L;

		@ManyToOne
		@JoinColumn(name = "STORE_ID")
		Store store;
		@Column(name="FAVORITENAME")
		String favoriteName;
		@Column(name = "SALES")
		String sales;
		@Column(name = "ADDR")
		String addr;
		
		public Store getStore() {
			return store;
		}

		public void setStore(Store store) {
			this.store = store;
		}

		public String getFavoriteName() {
			return favoriteName;
		}

		public void setFavoriteName(String favoriteName) {
			this.favoriteName = favoriteName;
		}
		public String getSales() {
			return sales;
		}

		public void setSales(String sales) {
			this.sales = sales;
		}

		public String getAddr() {
			return addr;
		}

		public void setAddr(String addr) {
			this.addr = addr;
		}}
>>>>>>> origin/master
